package com.clkj.sunhelp.mvp.login;

import com.clkj.sunhelp.bean.UserLoginInfo;
import com.clkj.sunhelp.bean.WorkerLoginInfo;
import com.clkj.sunhelp.mvp.base.BasePresenter;
import com.clkj.sunhelp.mvp.base.BaseView;

/**
 * Created by Administrator on 2017/3/27.
 */

public class LoginContract {

    public interface View extends BaseView<Presenter> {

        void loginPeople();

        void onLoginPeopleSuccess(UserLoginInfo userLoginInfo);

        void onLoginPeopleError(String tip);

        void loginWorker();

        void onLoginWorkerSuccess(WorkerLoginInfo workerLoginInfo);

        void onLoginWorkerError(String tip);
    }

    public interface Presenter extends BasePresenter
    {
        void loginPeople(String account,String pass);

        void loginWorker(String account,String pass);
    }

}
